#ifndef __TEST5_H_
#define __TEST5_H_

#include <stdio.h>
#include <stdlib.h>

typedef struct TreeNode
{
    char data;
    struct TreeNode *lefttree, *righttree;
} TreeNode;
typedef struct
{
    TreeNode *treeroot;
} TreeRoot;


typedef struct q_t
{
    struct TreeNode *tree;
    struct q_t *next;
} q_t;
typedef struct
{
    q_t *front,*rear;
    int len;
} linkq_t;

void test5(void);
TreeRoot *CreateTree(void);
linkq_t *CreatListSeq(void);
int TreeStoreyPrint(TreeRoot *root);
int InsertListSeq(linkq_t *linkq, TreeNode *root);
// TreeNode *GetOutListSeq(linkq_t *linkq, TreeNode *root);
TreeNode *GetOutListSeq(linkq_t *linkq);
int PrintAllLinkq(linkq_t *linkq);
#endif
